/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.BasProject.DomainModels
{
    [Entity(TableCnName = "条码要素",TableName = "Bas_BarcodeElement",DBServer = "ServiceDbContext")]
    public partial class Bas_BarcodeElement:ServiceEntity
    {
        /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long BarcodeElementId { get; set; }

       /// <summary>
       ///要素类型;数据字典:barcode_factor_type
       /// </summary>
       [Display(Name ="要素类型;数据字典:barcode_factor_type")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string CodingType { get; set; }

       /// <summary>
       ///要素代码
       /// </summary>
       [Display(Name ="要素代码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string CodingParam { get; set; }

       /// <summary>
       ///要素说明
       /// </summary>
       [Display(Name ="要素说明")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string CodingDesc { get; set; }

       /// <summary>
       ///条码公式
       /// </summary>
       [Display(Name ="条码公式")]
       [MaxLength(128)]
       [Column(TypeName="nvarchar(128)")]
       [Editable(true)]
       public string CodingFormula { get; set; }

       /// <summary>
       ///要素长度
       /// </summary>
       [Display(Name ="要素长度")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CodingLength { get; set; }

       /// <summary>
       ///填充字符
       /// </summary>
       [Display(Name ="填充字符")]
       [MaxLength(1)]
       [Column(TypeName="nvarchar(1)")]
       [Editable(true)]
       public string PadLeftChar { get; set; }

       /// <summary>
       ///进制
       /// </summary>
       [Display(Name ="进制")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Metric { get; set; }

       /// <summary>
       ///进制字符
       /// </summary>
       [Display(Name ="进制字符")]
       [MaxLength(128)]
       [Column(TypeName="nvarchar(128)")]
       [Editable(true)]
       public string MetricSpecialString { get; set; }

       /// <summary>
       ///样例数据
       /// </summary>
       [Display(Name ="样例数据")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string SampleValue { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       
    }
}